package com.autoabacus.dal.service;

import java.io.Serializable;
import java.util.Collection;   
import java.util.List;
  

public interface IService<T, ID extends Serializable> {
	
    public T load(ID id);   
    
    public T get(ID id);   
  
    public boolean contains(T t);   
  

  
    public void refresh(T t);   
  
    public Serializable save(T t);   
  
    public void saveOrUpdate(T t);   
  
    public void saveOrUpdateAll(Collection<T> entities);   
  
  
  
    public void update(T t);   
  
 
  
    public void delete(T t);   
  
    public void deleteAll(Collection<T> entities);   
  
    public List<T> find(String queryString, Object value);   
  
    public List<T> find(String queryString, Object[] values);   
  
    public List<T> find(String queryString);   
  
    public List<T> list();   
  
    public List<T> findByNamedQuery(String queryName);   
  
    public List<T> findByNamedQuery(String queryName, Object value);   
  
    public List<T> findByNamedQuery(String queryName, Object[] values);
}
